<div class="userinfo">

	<div class="uprocatlist">
    	<ul class="fixed">
        	<li><a href="javascript:void(0);">我的老爸</a><img src="{if $vo[bavatar]!=""}{$vo[bavatar]}{else}__PUBLIC__/Images/nophoto.gif{/if}" width="107" height="107" alt="" /></li>
        	<li><a href="javascript:void(0);">我的老妈</a><img src="{if $vo[mavatar]!=""}{$vo[mavatar]}{else}__PUBLIC__/Images/nophoto.gif{/if}" width="107" height="107" alt="" /></li>
        </ul>
        <script>
        $(document).ready(function(){
			$(".uprocatlist>ul>li").click(function(){
				$(this).children("img").slideToggle();
			});
		});
        </script>
    </div>
    <div class="userleft">
        <div class="sendparentstr">我的订单</div>
        <div class="userzl fixed" style="width:698px; margin-bottom:0;">
            <p class="tit"><span><a href="{:URL('User-Order/index')}">返回订单列表</a></span>{$order['add_time']|toDate=###,'Y-m-d'}&nbsp;&nbsp;&nbsp;&nbsp;<strong style="font-weight:normal;">订单号码：{$order.sn}</strong></p>
            <div class="orderprolist fixed">
                <ul class="fixed">
                	<volist name="order_data" id="vop">
                	<li class="fixed">
                    	<p class="pimg"><a href="{$vop[product_url]}"><img src="{$vop[product_thumb]|thumb}" width="53" height="53" alt="" /></a></p>
                        <div class="pcon">
                        	<strong><a href="{$vop[product_url]}">{$vop[product_name]}</a></strong><br />
                        	价格：{$vop[product_price]}元&nbsp;&nbsp;数量：{$vop[number]}<br />
                            <span>配送快递：顺丰速运</span>
                        </div>
                    </li>
                    </volist>
                </ul>
            </div>
            <div class="orderstatus">{if $order[pay_status]<2 && $order[status]<2}<a href="javascript:void(0);" onclick="window.open('{$paybutton}')">点击支付</a>{else}<b class="blue_font">{:L("pay_status_".$order[pay_status])}</b>{/if}</p>
            {if $order[status]==0}<p><a href="javascript:void(0);" onclick="order_status('status',5,'是否取消订单',{$order[id]});">取消订单</a></p>{/if}{if $order[shipping_status]==1}<p><a href="javascript:void(0);" onclick="order_status('shipping_status',2,'是否确认收货',{$order[id]});">确认收货</a></p>{/if}</div>
        </div>
        
        <div class="orderatherinfo">
        	收货信息：{$order[consignee]}&nbsp;&nbsp;{$order[mobile]}&nbsp;&nbsp;{$order[province]|jgarea}&nbsp;&nbsp;{$order[city]|jgarea}&nbsp;&nbsp;{$order[area]|jgarea}&nbsp;&nbsp;{$order[address]}&nbsp;&nbsp;<br />
            订单信息：
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            	<tr>
                	<td width="50%" align="center" height="26">下单时间：{$order[add_time]|todate}</td>
                	<td width="50%" align="center">付款时间：{$order[pay_time]|todate}</td>
                </tr>
            	<tr>
                	<td width="50%" align="center" height="26">发货时间：{$order[shipping_time]|todate}</td>
                	<td width="50%" align="center">成交时间：{$order[confirm_time]|todate}</td>
                </tr>
            </table>
            <br />
            <a href="{:URL('User-Order/index')}">返回订单列表</a>
        </div>
    </div>
</div>

<script>


function order_status(type,value ,msg,oid,tit){
	var  datas={'type':type,'value':value,'dosubmit':'1'};
	art.dialog({
		title: tit,
		content: msg,
		ok: function () {
			$.ajax({
				type:"POST",
				url: "/index.php?g=User&m=Order&a=edit&do=status&id="+oid,
				data:  datas,
				timeout:"4000",
				dataType:"JSON",
				success: function(data){ 
					art.dialog({ lock:true,icon: 'ok',time:'2',content: data.msg});
					 setTimeout(function(){	window.location.href = '{:U("Order/index?act=".$act)}';},2000);					
				},
				error:function(){
					art.dialog({ lock:true,icon: 'error',time:'2',content: 'Link error!'});
					return false;
				}
			});			
		},
		cancel: true
	});
}
</script>                                                                                                                                                                                                                                                                                                                                                                                                                                                